﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;



class TRES4Numbers
    {
        // 90 points in BG Coder ?!?
        static void Main()
        {
            BigInteger number = BigInteger.Parse(Console.ReadLine());

            List<string> numberTres = new List<string>();

            while (number > 0)
            {
                BigInteger digit = number % 9;
                numberTres.Add(digit.ToString());
                number /= 9;
            }

            numberTres.Reverse();

            StringBuilder result = new StringBuilder();
            foreach (string element in numberTres)
            {
                switch (element)
                {
                    case "0": result.Append("LON+"); break;
                    case "1": result.Append("VK-"); break;
                    case "2": result.Append("*ACAD"); break;
                    case "3": result.Append("^MIM"); break;
                    case "4": result.Append("ERIK|"); break;
                    case "5": result.Append("SEY&"); break;
                    case "6": result.Append("EMY>>"); break;
                    case "7": result.Append("/TEL"); break;
                    case "8": result.Append("<<DON"); break;

                }


            }
            Console.WriteLine(result);


        }
    }

